<!-- Left side column. contains the logo and sidebar -->
<aside class="main-sidebar">

  <!-- sidebar: style can be found in sidebar.less -->
  <section class="sidebar">

    <!-- Sidebar user panel (optional) -->
    <div class="user-panel">
      <div class="pull-left image">
        <img src="/dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
      </div>
      <div class="pull-left info">
        <p id="username"><%= userName%></p>
        <!-- Status -->
        <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
      </div>
    </div>

    <!-- search form (Optional) -->
    <!-- <form   class="sidebar-form">
      <div class="input-group">
        <input type="text" name="q" class="form-control" placeholder="Search...">
            <span class="input-group-btn">
              <button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i>
              </button>
            </span>
      </div>
    </form> -->
    <!-- /.search form -->

    <!-- Sidebar Menu -->
    <ul class="sidebar-menu">
      <li class="header">HEADER</li>
      <li  onclick="test('/chart')" class="active"><a ><i class="fa fa-link"></i> <span>首页</span></a></li>
      <li class="treeview ">
        <a>
          <i class="fa fa-dashboard"></i> <span>文章管理</span>
          <span class="pull-right-container">
            <i class="fa fa-angle-left pull-right"></i>
          </span>
        </a>
        <ul class="treeview-menu">
          <li onclick="test('/article')" class="erjimenu"><a><i class="fa fa-circle-o"></i> 创建文章</a></li>
          <li  onclick="test('/manarticle')"><a><i class="fa fa-circle-o"></i> 管理文章</a></li>
          <% if (roots == 'level3') { %>
          <li onclick="test('/manngerArticle')" class="active"><a><i class="fa fa-circle-o"></i> 查看文章 </a></li>
          <% } %>
        </ul>
      </li>
      <li class="treeview ">
        <a>
          <i class="fa fa-dashboard"></i> <span>项目管理</span>
          <span class="pull-right-container">
            <i class="fa fa-angle-left pull-right"></i>
          </span>
        </a>
        <ul class="treeview-menu">
          <li onclick="test('/project')" class="erjimenu"><a><i class="fa fa-circle-o"></i> 创建项目</a></li>
          <li  onclick="test('/manproject')"><a><i class="fa fa-circle-o"></i> 管理项目</a></li>
        </ul>
      </li>
      <li class="treeview ">
        <a>
          <i class="fa fa-dashboard"></i> <span>个人管理</span>
          <span class="pull-right-container">
            <i class="fa fa-angle-left pull-right"></i>
          </span>
        </a>
        <ul class="treeview-menu">
          <li  onclick="test('/exprience')"><a><i class="fa fa-circle-o"></i> 历程管理</a></li>
          <li  onclick="test('/message')"><a><i class="fa fa-circle-o"></i>留言管理</a></li>
          <li onclick="test('/about')" class="active"><a><i class="fa fa-circle-o"></i> 关于 </a></li>
        </ul>
      </li>
    </ul>
    <!-- /.sidebar-menu -->
  </section>
  <!-- /.sidebar -->
</aside>
<script>

   (function(){
  
      $('.content-wrapper').load(localhost +'/chart');
     
   })();
   
      function test (data){
          $('.content-wrapper').load(localhost + data);
      }
    
</script>